// 待遇参数管理管理
export const basicThead = [
  // {
  //   type: 'selection',
  //   width: 60,
  //   align: 'center'
  // },
  {
    title: '业务',
    key: 'parameterTypeEnumName'
  },
  {
    title: '业务类型',
    key: 'parameterName'
  },
  {
    title: '是否区分城市',
    key: 'whetherDistinguishCitie',
    render: (h, params) => {
      const text = params.row.whetherDistinguishCitie == 1 ? '是' : '否'
      return h('span', text)
    }
  },
  {
    title: '状态',
    key: 'parameterStatus',
    render: (h, params) => {
      const text = params.row.parameterStatus == 1 ? '启用' : '禁用'
      return h('span', text)
    }
  },
  {
    title: '操作',
    width: 280,
    align: 'center',
    key: 'action',
    slot: 'action'
  }
]

// 编辑环节
export const editNodeThead = [
  {
    title: '环节名称',
    key: 'linkName'
  },
  {
    title: '环节说明',
    key: 'linkDescription'
  },
  {
    title: '默认',
    key: 'linkDefalt',
    render: (h, params) => {
      const text = params.row.linkDefalt == 1 ? '是' : '否'
      return h('span', text)
    }
  },
  {
    title: '固定',
    key: 'linkFixed',
    render: (h, params) => {
      const text = params.row.linkFixed == 1 ? '是' : '否'
      return h('span', text)
    }
  },
  {
    title: '状态',
    key: 'linkStatus',
    render: (h, params) => {
      const text = params.row.linkStatus == 1 ? '启用' : (params.row.linkStatus == -1 ? '禁用' : '删除')
      return h('span', text)
    }
  },
  {
    title: '操作',
    width: 400,
    align: 'center',
    key: 'action',
    slot: 'action'
  }
]

// 编辑城市
export const editCityThead = [
  {
    title: '城市',
    key: 'areaFullName'
  },
  {
    title: '附件模板',
    key: 'fileAnnexName',
  },
  {
    title: '操作',
    width: 300,
    align: 'center',
    key: 'action',
    slot: 'action'
  }
]